<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>留言板</title>
  <%= stylesheet_link_tag 'main' %>
  <%= javascript_include_tag 'prototype' %>
  <%= javascript_include_tag 'effects' %>
  <%= javascript_include_tag 'fckeditor' %>
</head>
<body>

<%= render :partial => '/share/head' %>

<!-- 菜单区域 -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr><td colspan=4 height=2></td></tr>
	<tr>

		<!-- 当前子菜单 -->
		<td height="100%" width=2>
		
		 </td>

		<td background ="/img/tab_stripes.jpg">
    <div id="notice" align="center"></div>
		  <script language="javascript">
        function setNotice(notice)
        {
            var element = document.getElementById('notice')
            element.innerHTML = "<span id ='notice1' style='background:#FFFF00;'>" + notice + "</span>";
            setTimeout('new Effect.Fade(\'notice1\')', 2250)
        }
        <% if @flash[:notice] %>
            setNotice('<%=@flash[:notice]%>')
        <% end %>
        </script>
		</td>
				<td width=2></td>
		 <!-- 下拉主菜单 -->
         <td valign="top" align='right' width=10 nowrap>
				<%= render :partial=>'/share/taskselect' %>
	       </select>
         </td>
	</tr>
	<tr><td colspan=4 height="2"  style="background-color: black"></td></tr>
</table>

<script language="javascript">
function displaySubMenu(obj){
   var selectIndexOpt = obj.options[obj.selectedIndex].value;
   window.location = "/main/switchtask/" + selectIndexOpt
}
</script>


<%= @content_for_layout %>

<%= render :partial =>'/share/foot'%>
</body>
</html>